﻿using System;
using System.Collections.Generic;
using System.Text;

namespace HZ.DrugTrade.Model
{

    /// <summary>
    /// 用户实体类
    /// </summary>
    [Serializable]
    [HZ.Table(TableName = "TB_USER")]
    public class User
    {

        #region"属性"
        /// <summary>
        /// 用户名称
        /// </summary>
        public string UserName
        {
            set;
            get;
        }
        /// <summary>
        /// 用户编号
        /// </summary>
        [HZ.Column(PrimaryKey = true)]
        public string UserID
        {
            set;
            get;
        }
        /// <summary>
        /// 用户密码
        /// </summary>
        public string UserPassword
        {
            set;
            get;
        }
        /// <summary>
        /// 是否管理员
        /// </summary>
        public bool IsAdmin
        {
            set;
            get;
        }
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsUsing
        {
            set;
            get;
        }
        /// <summary>
        /// 是否在线
        /// </summary>
        public bool IsOnline
        {
            set;
            get;
        }
        /// <summary>
        /// 最后登陆时间
        /// </summary>
        public DateTime LastLoginTime
        {
            set;
            get;
        }
        /// <summary>
        /// 是否主用户
        /// </summary>
        public bool IsUserAdmin
        {
            set;
            get;
        }
        /// <summary>
        /// 用户所属角色
        /// </summary>
        public Role UserRole
        {
            set;
            get;
        }
        /// <summary>
        /// 所属机构
        /// </summary>
        public Org Org
        {
            set;
            get;
        }
        /// <summary>
        /// 用户操作权限列表
        /// </summary>
        public List<OperatingRule> OperatingRuleList
        {
            set;
            get;
        }
        #endregion
    }
}
